package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.ContractProviderSdnx;
import com.voltmao.persistent.model.ContractProviderSdnxCriteria;

import java.util.List;
import java.util.Map;

public interface ContractProviderSdnxMapper {
    int countByExample(ContractProviderSdnxCriteria example);

    int deleteByExample(ContractProviderSdnxCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(ContractProviderSdnx record);

    int insertSelective(ContractProviderSdnx record);

    List<ContractProviderSdnx> selectByExample(ContractProviderSdnxCriteria example);

    ContractProviderSdnx selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") ContractProviderSdnx record, @Param("example") ContractProviderSdnxCriteria example);

    int updateByExample(@Param("record") ContractProviderSdnx record, @Param("example") ContractProviderSdnxCriteria example);

    int updateByPrimaryKeySelective(ContractProviderSdnx record);

    int updateByPrimaryKey(ContractProviderSdnx record);

    ContractProviderSdnx selectByExampleForOne(ContractProviderSdnxCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(ContractProviderSdnxCriteria example);

    List<Map<String, Object>> selectMapByExample(ContractProviderSdnxCriteria example);

    /*自定义*/

    /**
     * 根据合同主键查询参数信息
     * @param cpId
     * @return
     */

    List<Map<String, Object>> selectMapByCPId(@Param("cpId") String cpId);
}